package com.bajie.bjlisten.entity;

import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * Package: com.bajie.framework.domain.unionpay
 * <p>
 * Description： TODO
 * <p>
 * Author: wangzhen
 * <p>
 * Date: Created in 2019/4/19 10:18 AM
 */
@Data
@ToString
@Entity
@Table(name = "bj_virtualcoin")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
public class BjVirtualCoin {
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(length = 32)
    private String id;
    @Column(name = "user_id")
    private String userId;
    @Column(name = "virtual_coin")
    private String virtualCoin;

    @Column(name = "create_time")
    private Date createTime;
    @Column(name = "update_time")
    private Date updateTime;

    public BjVirtualCoin(String userId, String virtualCoin, Date createTime, Date updateTime) {
        this.userId = userId;
        this.virtualCoin = virtualCoin;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public BjVirtualCoin() {

    }
}
